package cn.jdy.common.ctrl;

import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

public class SessionListener implements HttpSessionListener {
	public static int count;

	public SessionListener() {
		count = 0;
	}

	public void sessionCreated(HttpSessionEvent se) {
		count++;
	}

	public void sessionDestroyed(HttpSessionEvent se) {
		if(count > 0) count--;
	}
}